package com.tyf.easyEs.service;


import com.tyf.easyEs.mapper.StudentEsMapper;
import com.tyf.easyEs.model.Student;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;
import org.dromara.easyes.core.core.EsWrappers;

import java.util.List;

@DubboService(version = "2.0.0",group = "ES_GROUP")
public class EasyEsStudentServiceImpl implements EasyEsStudentService{

    @Resource
    private StudentEsMapper studentEsMapper;

    @Override
    public List<Student> getList() {
        return studentEsMapper.selectList(EsWrappers.lambdaQuery(Student.class));
    }
}
